<?php
/* @var $this BlockController */
/* @var $model Block */
/* @var $form BootActiveForm */
?>

<div class="form">

    <?php $form=$this->beginWidget('bootstrap.widgets.BootActiveForm', array(
            'id'=>'flat-form',
            'enableAjaxValidation'=>false,
            'type'=>'horizontal',
            'method'=>'post',));

        $form->errorSummary($model);

    ?>



    <fieldset>
        <legend>Lakás</legend>


            <?php

            echo $form->textFieldRow($model,'number',array('class'=>'span5','maxlength'=>10));

            echo $form->textAreaRow($model,'note', array('rows'=>6, 'cols'=>30, 'class'=>'span5'));

            echo $form->hiddenField($model, 'block_id', array('value'=>$block->id));

            ?>

    </fieldset>

    <div class="form-actions">
        <?php $this->widget('bootstrap.widgets.BootButton', array(
                'buttonType'=>'submit',
                'type'=>'primary',
                'icon'=>'ok white',
                'label'=>'Mentés',
        ));

        echo hyperlink('Vissza', array('flat/index', 'blockId'=>$block->id));
        ?>
    </div>

    <?php $this->endWidget(); ?>

</div>
<!-- form -->


